﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.burry.services.CatalogService" %>
<%@ page import="com.burry.services.GoodService" %>
<%@ page import="com.burry.services.SizeService" %>
<%@ page import="applelew.util.Debug" %>
<%

//good_id改为：gid ,color_id改为：cid, chooseCata改为：cscata
	String brand = "8E";
	String cata = request.getParameter("cata");
	String chooseCata = request.getParameter("cscata");
	String realCata = cata;
	String goodId = request.getParameter("gid");
	String colorId = request.getParameter("cid");
	Debug.logInfo("colorId ==> " + colorId);
	GoodService gs = new GoodService();
	
	List subColorList = gs.getGoodById(goodId);
	//System.out.println("subColorList ==> " + subColorList);
	Debug.logInfo("subColorList ==> " + subColorList);
	
	
	Map currentMap = null;
	
	//获取当前版色信息
	for(int i=0;i<subColorList.size();i++){
		Map t = (Map)subColorList.get(i);
		String tColor = (String)t.get("color_id");
		if(colorId.equals(tColor))
			currentMap = t;
	}
	Debug.logInfo("currentMap ==> " + currentMap);
	
	
	
	Map cataM = (Map)CatalogService.allCataInfo.get(cata);		//当前分类信息
	
	
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<title>女装：女上衣 | Barior</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="zh-CN"/>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta content="" name=keywords>
<meta content="" name=description>
<meta content="" name=author>
<meta content="" name=GENERATOR>
<meta content="" name=copyright>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" href="resource/css/layouts.css" />
<link rel="stylesheet" type="text/css" href="resource/css/bariorNav.css" />
<link rel="stylesheet" type="text/css" href="resource/css/leftNav.css" />
<link rel="stylesheet" type="text/css" href="resource/css/product.css" />
<link rel="stylesheet" type="text/css" href="resource/css/jqzoom.css" />
<link rel="stylesheet" type="text/css" href="resource/css/global.css" />
<script type="text/javascript" src="resource/js/prototype.js"></script>

<script type="text/javascript" src="resource/js/jquery.js"></script>
<script type="text/javascript" src="resource/js/jquery.jqzoom.min.js"></script>
<script type="text/javascript" src="resource/js/swfobject/jquery.innerfade.js"></script>
<script type="text/javascript" src="resource/js/persist-min.js"></script>
<script type="text/javascript" src="resource/js/global.js"></script>

<script src="resource/js/yahoo.js"></script>

<script src="resource/js/event.js"></script>
<script src="resource/js/connection.js"></script>
<script src="resource/js/json.js"></script>
<script type="text/javascript" src="resource/js/cookie-min.js"></script>
<script type="text/javascript" src="resource/js/effects.js"></script>

<script type="text/javascript" src="resource/js/product.js"></script>


<script type="text/javascript">
var applelew = jQuery.noConflict();

applelew(document).ready(function(){
		Store.init();
	  
	  getGoodNum();
		applelew(function(){
			applelew('ul#ads').innerfade({
				speed: 1000,
				timeout: 3000
			})
		});
		
applelew(".jqzoom").jqueryzoom({
	xzoom: 320, //zooming div default width(default width value is 200)
	yzoom: 280, //zooming div default width(default height value is 200)
	offset: 20, //zooming div default offset(default offset value is 10)
	position: "right", //zooming div position(default position value is "right")
 	preload:1,
	lens:1
});

});
</script>
</head>
<body>
<%
	CatalogService cs = new CatalogService();
	cata = cs.getFatherThree(cata);
	
	String useCata = null;
	if(chooseCata != null)
		useCata = cs.getFatherFour(chooseCata);
	//广告定义相关
	List cataAd = null;
	//out.println(cataAd);
	if(chooseCata == null)
		cataAd = cs.getCataAd(realCata);
	else
		cataAd = cs.getCataAd(chooseCata);
	//out.println(cataAd);
	Map cataAdMap = new HashMap();
	if(cataAd != null && cataAd.size() != 0)
		cataAdMap = (Map)cataAd.get(0);
	
	String isNav = (String)cataAdMap.get("isNav");
	String adContent = (String)cataAdMap.get("ad_content");
	
	String showCata = cata;
%>


<%
	if(cataAdMap != null && cataAdMap.size() != 0){
	
		//out.println("是否显示导航" + isNav);
		//out.println("广告内容" + adContent);
	}
%>
<DIV id="bariorHeader">
	<!--<iframe src="bariorheader.html" frameborder= "no" border="0" width=100% height=100%></iframe>-->
	<div id="headerBrandNav">
		<ul>
			<li><a class="hideAline" href="Javascript:changeBrand('http://www.applelew.cn/BARIOR/index.jsp')"><img id="barLnk_1" src="resource/images/common/BarTab_barior_on.gif" alt="柏瑞  引领时尚 传承经典" class="pngAlpha" border=0></a></li>
		</ul>
	</div>
	<div id="headerInfo">
		<ul id="ads">
		  <li><img class="hideAline imglnk" src="resource/images/ads/header/postStamp.png" border=0 onclick="Javascript:window.open();" /></li>
		  <li><img class="hideAline imglnk" src="resource/images/ads/header/reg.png" border=0 onclick="Javascript:window.open();" /></a></li>
		</ul>
	</div>
	
	<div id="headerContent">
		<div id="headerContentTop">
			<ul class="clearfix">
				<li class="topli"><a class="hideAline" href="member/index.html" target="_parent">我的账户</a><span class="toplinepad">|</span><a class="hideAline" href="member/sign.html" target="_parent">登录注册</a><span class="toplinepad">|</span><a class="hideAline" href=>购物指南</a><span class="toplinepad">|</span><a class="hideAline" href="http://www.barieo.com" target="_parent">柏瑞首页</a></li>
				<li class="topli"><a class="hideAline" href="shopping_cart.html" target="_parent">我的购物车</a></li>
			</ul>
		</div>
		<div id="headerContentBottom" style="display:block">
			<ul class="clearfix">
				<li class="shoppingbagview"><span style="padding-right:4px;"><img src="resource/images/common/gwc.gif" border=0 /></span><a href="shopping_cart.jsp" class="hideAline">购物车中有<font id="goodNum">&nbsp;</font>件商品</a></li>
				<li class="shoppingbagchbtn"><div class="cartcheckoutoff" onmouseover="Javascript:this.className='cartcheckoutover';" onmouseout="Javascript:this.className='cartcheckoutoff';" onclick="Javascript:window.location='shopping_cart.jsp';"></div></li>
			</ul>
		</div>
		<div id="shoppingbag" style="display:none;width:242px;height:!important;height:50;margin-top:0px;position:absolute;z-index:8888;">
		<div id="myshoppingbag" class="clearfix">
			<div id="shoppingbagBrand"><img src="resource/images/common/IconBrands_barior.png" border=0 /></div>
			<div id="shoppingbagInfo">
				<ul class="clearfix">
					<li class="shoppingbagImg"><a href="" class="hideAline"><img id="gElePic" src="resource/images/cl.jpg" border=0 /></a></li>
					<li class="shoppingbagproduct">
						<div class=""><a href="" class="hideAline bagproname" id="gEleName">&nbsp;</a></div>
						<div class="bagpronum" id="gEleId">&nbsp;</div>
					</li>
				</ul>
				<div class="bagdetails"><span class="bagtxt">颜色：</span><font id="gEleColor">&nbsp;</font></div>
				<div class="bagdetails"><span class="bagtxt">尺码：</span><font id="gEleSize">&nbsp;</font></div>
				<div class="bagdetails"><span class="bagtxt">单价：</span>￥<font id="gElePrice">&nbsp;</font></div>
				<div class="bagdetails">
					<ul class="clearfix">
						<li class="mybagqty"><span class="bagtxt">数量：</span><font id="gEleQty">&nbsp;</font></li>
						<li class="mybagprice">￥<font id="gEleAllPrice">&nbsp;</font></li>
					</ul>
				</div>
			</div>
			<div class="clearfix clearpad"></div>
			<div id="shoppingbagtotal">
				<ul class="clearfix">
					<li class="mybagpronum">购物车中有 <font id="cartNum">&nbsp;</font> 件商品 </li>
					<li class="mybagpritotal">总价:￥ <font id="cartPrice">&nbsp;</font> </li>
				</ul>
			</div>
			<div id="shoppingbagcheckout">
				<ul class="clearfix">
				  <li class="shoppingbagctrleft">您已经添加了商品，谢谢选购！</li>
				  <li class="shoppingbagctrright"><div class="shoppingbagctrbtn" onclick="rollUp()"></div></li>
			  </ul>
			</div>
		</div>
		<div id="shoppingbagtips">单次购物满200元，免运费！
		</div>
	</div>
	</div>
	<div class="clearfix clearpad"></div>
</DIV>

<!-- 头部结束 -->

<DIV id="bariorTopNav">
	<div id="bariorlogo"><a href="" class="hideAline"><img src="resource/images/common/logo.png" border=0></a></div>
	<div id="bariorNavContainer">
		<div id="bariorNavContainerInfo"></div>
  	<div id="bariorNavContainerSearch">
  		<iframe src="search.htm" frameborder= "no" border="0" width=100% height=100%></iframe>
  	</div>
  	<div id="bariorNavContainerCall"><img src="resource/images/common/new400call.png" border=0></div>
  	<div class="clearfix clearpad"></div>
  	<div id="bariorNav">
  		<div id="divisionContainer">
  			<ul>
  				
  				<%
  				//菜单显示区
  					List secCata = (List)CatalogService.allFaCataInfo.get(brand);
  					for(int i=0;i<secCata.size();i++){
  						Map t = (Map)secCata.get(i);
  						String cataCode = (String)t.get("cata_code");
  						
  						List thdCata = (List)CatalogService.allFaCataInfo.get(cataCode);
  						//对当前分类判断真假
  						if(thdCata != null && thdCata.size() == 1 && cata.equals(cataCode)){
  							Map isFakeMap = (Map)thdCata.get(0);
  							//out.println(cataCode + "---> " + isFakeMap);
  							String isFake = (String)isFakeMap.get("s_config");
  							String fakeCode = (String)isFakeMap.get("cata_code");
  							if("1".equals(isFake)){
  								//cataCode = fakeCode;
  								//t = isFakeMap;
  								showCata = fakeCode;
  								thdCata = (List)CatalogService.allFaCataInfo.get(cataCode);
  							}
  						}
  						
  				%>
  				
  				<%if(i == 6){%>
  				<li style="width:3px;">&nbsp;</li>
  				<%}%>
  				
  				<li class="division" onmouseover="showSubNav('division<%=cataCode%>');" onmouseout="hideSubNav('division<%=cataCode%>');"><a class="hideAline" href="catagory.do?cata=<%=cataCode%>" title="<%=t.get("cata_name")%>"><div id="division<%=cataCode%>" class="topnavSprite_division<%=cataCode%>_off"></div></a>
  				<%
  					if(thdCata != null && thdCata.size() != 0){
  					
  				%>
  					<ul id="division<%=cataCode%>Children" class="subDivisionNavHidden" style="z-index:80;">
  						<%
  							for(int j=0;j<thdCata.size();j++){
  								Map tmp = (Map)thdCata.get(j);
  								String cCode = (String)tmp.get("cata_code");
  								String cName = (String)tmp.get("cata_name");
  								
  								
  					%>
  					<li class="subDivision" onmouseover="showSubDivision('subDivision<%=cataCode+cCode%>');" onmouseout="hideSubDivision('subDivision<%=cataCode+cCode%>');"><a class="hideAline" href="catagory.do?cata=<%=cCode%>" title="<%=cName%>"><div id="subDivision<%=cataCode+cCode%>" class="topnavSprite_subDivision<%=cataCode+cCode%>_off" /></div></a></li>
  						
  					<%
  							}
  							
  						%>
  						
  					</ul>
  						
  				<%
  					}
  				%>	
  					
  					
  					
  				</li>
  				<%
  					}
  				%>
  				
  				
  			</ul>
  			<li><a class="hideAline" href="union/index.do" target="_blank" title="柏瑞事业联盟"><div id="division10" class="topnavSprite_division_union"></div></a></li>
  		</div>
  	</div>
	</div>
	<div class="clearfix clearpad2"></div>
</DIV>
<DIV id="DivsionTab" <%if("0".equals(isNav)) out.print("class=\"DivsionTabLefthide\""); else  out.print("class=\"DivsionTabLeftshow\""); %>>
	<div id="DsnMain">
		<div id="DsnMainLeftNav" <%if("0".equals(isNav)) out.print("class=\"DsnMainLeftNavLefthide\""); else  out.print("class=\"DsnMainLeftNavLeftshow\""); %>>
			<div id="LeftNav<%=cata%>" class="LeftNavtop">&nbsp;</div>
			<div class="leftDepartments">
				<div id="leftDepartmentsIntro">&nbsp;</div>
			  <div class="DepartmentsLnk"><a class="hideAline LeftNavCurLink" href="Division8801.html">上市新品</a></div>
			  <div class="DepartmentsLnk"><a class="hideAline LeftsubNavLink" href="">内衣</a></div>
			  <div class="DepartmentsLnk"><a class="hideAline LeftsubNavLink" href="Division9901.html">胸罩</a></div>
			  <div class="DepartmentsLnk"><a class="hideAline LeftsubNavLink" href="">牛仔裤</a></div>
			  <div class="DepartmentsLnk"><a class="hideAline LeftNavLink" href="">199礼包</a></div>
			  <div class="DepartmentsLnk"><a class="hideAline LeftNavLink" href="">热销商品</a></div>
			</div>
			<div class="leftDepartments">
				<div id="leftDepartmentsPro">&nbsp;</div>
			  <%

			  	List fourCata = (List)CatalogService.allFaCataInfo.get(showCata);
			  	//out.println(fourCata);
			  	if(fourCata == null){
			  	
			  	%>
			  	
			  <div class="DepartmentsLnk"><a class="hideAline LeftNavLink" href=""><%=cataM.get("cata_name")%></a></div>	
			  <%
			  	}
			  	
			  else{
			  	
			  	
			  	for(int i=0;i<fourCata.size();i++){
			  		Map t = (Map)fourCata.get(i);
			  		String cCode = (String)t.get("cata_code");
			  		//out.println(cCode);
			  %>
			<div class="DepartmentsLnk"><a class="<%if(cCode.equals(useCata)) out.print("hideAline LeftNavCurLink"); else out.print("hideAline LeftNavLink");%>" href="catagory.do?cata=<%=cata%>&cscata=<%=cCode%>"><%=t.get("cata_name")%></a></div>
			  
			  <%
			  
			  		List fifCata = (List)CatalogService.allFaCataInfo.get(cCode);
			  		if(fifCata!=null){
			  			for(int j=0;j<fifCata.size();j++){
			  				Map tmp = (Map)fifCata.get(j);
			  				String ccCode = (String)tmp.get("cata_code");
			  				
			  %>
			  		<div class="DepartmentsLnk"><a class="<%if(ccCode.equals(chooseCata)) out.print("hideAline LeftsubNavCurLink"); else out.print("hideAline LeftsubNavLink");%>" href="catagory.do?cata=<%=cata%>&cscata=<%=ccCode%>"><%=tmp.get("cata_name")%></a></div>
			  <%
			  			}
			  		}
			  	}
			  	
			  	}
			  %>
			  
			  
			</div>
		</div>
		
		<%
		

		
			List picList = gs.getAllSuitColor(goodId,colorId);
			Debug.logInfo("picList =====> " + picList);
			Map currentPic = null;
				for(int i=0;i<picList.size();i++){
					Map t = (Map)picList.get(i);
					String tColor = (String)t.get("color_id");
					if(colorId.equals(tColor))
						currentPic = t;
				}
				Debug.logInfo("currentPic = "+ colorId +" ====> " + currentPic);
			if(currentPic == null)
				currentPic = new HashMap();
			
			String smallPic = (String)currentPic.get("prd_normal_pic");
			if(smallPic == null)
				smallPic = "resource/images/test/260.jpg";
			else
				smallPic = "resource/products/" + smallPic;
			String bigPic = (String)currentPic.get("prd_big_pic");
			
			if(bigPic == null)
				bigPic = "resource/images/test/520.jpg";
			else
				bigPic = "resource/products/" + bigPic;
			
		%>
		<div id="DsnMainConter" class="DsnMainConterLeftshow">
			<div id="proImg">
			  <div class="jqzoom"><img id="bigProImg" src="<%=smallPic%>" alt="" jqimg="<%=bigPic%>" /></div>
				<div id="viewlarger" class="rollin">
					<div id="viewlargerBtn" onclick="Javascript:wndopen('viewImages.jsp?gid=<%=goodId%>&cid=<%=colorId%>&gname=<%=currentMap.get("good_name")%>');">&#160;</div>
				</div>
				<div id="indexImg">
					<ul class="clearfix">
						<%
							for(int i=0;i<picList.size();i++){
								Map t = (Map)picList.get(i);
								String tPic = (String)t.get("prd_simple_pic");
								String tPicBig = (String)t.get("prd_big_pic");
								String tPicNormal = (String)t.get("prd_normal_pic");
								tPic = "resource/products/" + tPic;
							
						%>
						<li><img src="<%=tPic%>" border=0 class="<%if(i==picList.size()-1) out.print("indexImgCur"); else out.print("indexImgout");%>" onmouseover="this.className='indexImgCur';setBigPic('<%=tPicNormal%>','<%=tPicBig%>');" onmouseout="this.className='indexImgout';" /></li>
						<%
							}
						%>
					</ul>
				</div>
			</div>
			<div id="proInfo">
				<div id="proName">商品名称：<span class="textSty"><%=currentMap.get("good_name")%></span><input type="hidden" id="eleName" value="<%=currentMap.get("good_name")%>" /></div>
				<div id="proNo">商品编号：<span class="textSty"><%=currentMap.get("color_id")%></span><input type="hidden" id="eleColorId" value="<%=currentMap.get("color_id")%>" /><input type="hidden" id="eleGoodId" value="<%=goodId%>" /></div>
				<div id="proIntro"><%=currentMap.get("good_intro")%></div>
				<div id="proColor">
					<div id="colorname">颜色：<span class="textSty"><%=currentMap.get("color_name")%></span><input type="hidden" id="eleColor" value="<%=currentMap.get("color_name")%>" /></div>
					<div id="proColorImg">
						<ul class="clearfix">
							<%
							Map currentColorMap = null;
								for(int i=0;i<subColorList.size();i++){
									Map t= (Map)subColorList.get(i);
									String tColorId = (String)t.get("color_id");
									boolean isCur = false;
									if(colorId.equals(tColorId)){
										currentColorMap = t;
										isCur = true;
									}
									String tColor = (String)t.get("prd_color_pic");
									tColor = "resource/products/" + tColor;
							%>
							<li><a href="product.do?gid=<%=goodId%>&cid=<%=tColorId%>&cata=<%=cata%>&cscata=<%=chooseCata%>" ><img src="<%=tColor%>" border=0 class="<%if(isCur) out.print("ColorImgCur"); else out.print("ColorImg");%>" onmouseover="this.className='ColorImgCur';" onmouseout="this.className='ColorImg';" /></a></li>
						<%
							}
							String checkPic = (String)currentColorMap.get("prd_check_pic");
							//out.print(currentColorMap);
							if(checkPic == null)
								checkPic = "resource/images/cl.jpg";
						%>
						<input type="hidden" id="elePic" value="<%=checkPic%>" />
						</ul>
					</div>
					<div id="proPrice">
						<ul class="clearfix">
							<li>市场同类产品价格：￥<%=currentMap.get("same_market_price")%></li>
							<li>原价：<span class="scline">￥<%=currentMap.get("ori_price")%></span></li>
							<li>现价：<span class="nowprice">￥<%=currentMap.get("current_price")%></span><input type="hidden" id="elePrice" value="<%=currentMap.get("current_price")%>" /></li>
						</ul>
					</div>
				</div>
				
				<%
					SizeService ss = new SizeService();
					String sizeCode = (String)currentMap.get("good_size");
					List sizeList = ss.getSizeDetail(sizeCode);
					//out.println(sizeList);
				%>
				<div id="proSize">
					<div id="choosesize">
						<ul class="clearfix">
							<li>尺码：</li>
							<li><span id="uChoose" class="txttitle">您还未选择</span></li>
						</ul>
					</div>
					<div id="sizecon">
						<ul class="clearfix">
							<%
								for(int i=0;i<sizeList.size();i++){
									Map t = (Map)sizeList.get(i);
									String sizeContent = (String)t.get("content");
							%>
							<!-- onmouseover="this.className='sizecodeCur';" onmouseout="this.className='sizecode';" -->
							<li><div class="sizecode"  onmouseover="this.className='sizecodeCur';" onmouseout="this.className='sizecode';"  onclick="setSize($j('uChoose'),$j('bag_choose'),'<%=sizeContent%>')"><%=t.get("content")%></div></li>
							
							<%
								}
							%>
						</ul>
					</div>
					<div id="sizetable"><a href="" class="hideAline norml">商品尺码表</a></div>
				</div>
				<div id="proChoose">
					<fieldset class="selfield">
						<legend class="selfieldtitle">我选购的商品</legend>
						<ul class="clearfix">
							<li class="choosefieldLeft">
								<div class="leftpad">板色：<span class="choosetxt"><%=currentMap.get("color_name")%></span></div>
								<div class="leftpad">尺码：<span id="bag_choose" class="choosetxt">未选择</span></div>
								<div class="leftpad">总价：<span class="nowprice">￥<%=currentMap.get("current_price")%></span></div>
							</li>
							<li class="choosefieldMiddle">
								<div>数量：</div>
								<select id="buynum" name="buynum" onchange="" class="selectSty" style="width:52px;">
									<option value="1" selected>1</option>
	  							<option value="2">2</option>
	  							<option value="3">3</option>
	  							<option value="4">4</option>
	  							<option value="5">5</option>
	  							<option value="6">6</option>
	  							<option value="7">7</option>
	  							<option value="8">8</option>
	  							<option value="9">9</option>
	  							<option value="10">10</option>
	  							<option value="11">其他</option>
	  						</select>
							</li>
							<li class="choosefieldRight" style="padding-top:20px;">
								<input type="button" class="gwcbtn" onclick="rollDown()"/>
							</li>
						</ul>
					</fieldset>
				</div>
				<div id="protrait">
					<div class="sliding" id="sliding" name="sliding">
						<ul class="sliding_title">
							<li class="on">产品特性</li>
							<li>产品介绍</li>
							<li style="margin-right:18px;">设计与工艺</li>
						</ul>
					</div>
					<div class="sliding_content">
						<ul class="clearfix">
							<li class="list"><%=currentMap.get("good_feature")%></li>
							
						</ul>
						<ul class="clearfix" style="display:none">
							<li class="list"><%=currentMap.get("good_desc")%></li>
						</ul>
						<ul class="clearfix" style="display:none">
							<li class="list"><%=currentMap.get("good_work")%></li>
						</ul>
					</div>
				  <script type="text/javascript">Goaler.init()</script>	
				</div>
			</div>
			<div class="clearfix"></div>
			<div id="proOther">
			<%
			//商品搭配
				String proWith = (String)currentMap.get("fix_id");
				List proWithList = gs.getSubColorInGoodIds(proWith);
				if(proWith != null){
			%>
				<div id="proWith" class="">
					<div class="withlike">
						<ul class="clearfix">
							<%
							for(int i=0;i<proWithList.size();i++){
							
								Map t = (Map)proWithList.get(i);
								String withPic = (String)t.get("prd_list_pic");
								String tGoodId = (String)t.get("good_id");
								String tColorId = (String)t.get("color_id");
								if(withPic == null || "null".equals(withPic))
									withPic = "resource/images/proListImg.jpg";
								else
									withPic = "resource/products/" + withPic;
							
							
								String goodname = (String)t.get("good_name");
								Double oriPrice = (Double)t.get("ori_price");
								Double cPrice = (Double)t.get("current_price");
							%>
							
							<li>
								<div><a class="hideAline" href="product.do?gid=<%=tGoodId%>&cid=<%=tColorId%>&cata=<%=realCata%>&cscata=<%=chooseCata%>"><img class="proListImg" src="<%=withPic%>" border=0 /></a></div>
								<div class="proName"><a class="hideAline" href="product.do?gid=<%=tGoodId%>&cid=<%=tColorId%>&cata=<%=realCata%>&cscata=<%=chooseCata%>"><%=goodname%></a></div>
								<div class="proPrice">原价：<span class="scline">￥<%=oriPrice%></span><br />现价：<span class="nowprice">￥<%=cPrice%></span></div>
							</li>
							
							
							<%
							}
							%>
						</ul>
				  </div>
				  <div class="withlikebottom"></div>
				</div>
				
				<%
					}
				%>
				
			<%
			//喜欢的商品
				String proLike = (String)currentMap.get("like_id");
				List priLikeList = gs.getSubColorInGoodIds(proLike);
				if(proLike != null){
			%>
				
				<div id="proLike" class="">
					<div class="withlike">
					
					<ul class="clearfix">
							<%
							for(int i=0;i<priLikeList.size();i++){
							
								Map t = (Map)priLikeList.get(i);
								String withPic = (String)t.get("prd_list_pic");
								
								if(withPic == null || "null".equals(withPic))
									withPic = "resource/images/proListImg.jpg";
								else
									withPic = "resource/products/" + withPic;
							
							
								String goodname = (String)t.get("good_name");
								String tGoodId = (String)t.get("good_id");
								String tColorId = (String)t.get("color_id");
								Double oriPrice = (Double)t.get("ori_price");
								Double cPrice = (Double)t.get("current_price");
							%>
							
							<li>
								<div><a class="hideAline" href="product.do?gid=<%=tGoodId%>&cid=<%=tColorId%>&cata=<%=realCata%>&cscata=<%=chooseCata%>"><img class="proListImg" src="<%=withPic%>" border=0 /></a></div>
								<div class="proName"><a class="hideAline" href="product.do?gid=<%=tGoodId%>&cid=<%=tColorId%>&cata=<%=realCata%>&cscata=<%=chooseCata%>"><%=goodname%></a></div>
								<div class="proPrice">原价：<span class="scline">￥<%=oriPrice%></span><br />现价：<span class="nowprice">￥<%=cPrice%></span></div>
							</li>
							
							
							<%
							}
							%>
						</ul>
						
						
				  </div>
				  <div class="withlikebottom"></div>
				</div>
				
				<%
					}
				%>
				
				
				
				
				
				
			</div>
						
			<div id="proComments">
				<div id="proCommentsTitle">
					产品：<span class="textSty">吊带裤&nbsp;&nbsp;白色</span>
					<span style="padding:0 10px 0 10px;">共有n条评论</span>
					<a class="norml hideAline" href="">查看所有评论</a>
					<span style="padding:0px 3px 0 0px;">|</span>
					<span style=""><a class="norml hideAline" href="">我要发布评论</a></span>
				</div>
				<div class="proCommentsCon">
					<ul class="clearfix">
						<li class="CommentsLeft">标题：</li>
						<li class="CommentsRight">
							不错的东东
							<span class="conpad">作者：毛泽东</span>
							<span class="conpad">发布时间：2009-3-13&nbsp;&nbsp;14:03:03</span>
						</li>
						<li class="CommentsLeft">内容：</li>
						<li class="CommentsRight">
							不错的东东不错的东东不错的东东不错的东东不错的东东不错的东东不错的东东不错的东东不错的东东不错的东东不错的东东不错的东东不错的东东不错的东东不错的东东
						</li>
					</ul>
				</div>
			</div>
		</div>
		<div class="clearfix"></div>
	</div>
	<div id="DsnTabRight">

	</div>
	<div class="clearfix"></div>
</DIV>


<DIV id="bariorFooter"><iframe src="bariorfooter.html" frameborder= "no" border="0" width=100% height=100%></iframe></DIV>
</body>
</html>